{include file="header.tpl" jsload="ajax" stage="project" jsload1="tinymce"}
{include file="tabsmenue-admin.tpl" companytab="active"}

<div id="content-left">
	
	<div id="content-left-in">
		
		<div class="companies projects">
			
			<div class="infowin_left" style = "display:none;" id = "systemmsg">
				{if $mode == "edited"}
				<span class="info_in_yellow">
					<img src="templates/standard/images/symbols/projects.png" alt=""/>
					{#projectwasedited#}
				</span>
				{elseif $mode == "timeadded"}
				<span class="info_in_green"><img src="templates/standard/images/symbols/timetracker.png" alt=""/>{#timetrackeradded#}</span>
				{/if}
			</div>
			
			{literal}
			<script type = "text/javascript">
				systemMsg('systemmsg');
			</script>
			{/literal}

			<h1>{$company.name|truncate:45:"...":true}<span>/ {#overview#}</span></h1>
			
			<div class="statuswrapper">
				<ul>
					{if $userpermissions.companies.edit}
					<li class="link">
						<a class="edit" href="managecompany.php?action=editform&company_id={$company.ID}" title="{#edit#}"></a>
					</li>
					{/if}
				</ul>
				
				<div class="clearfix"></div>
				
			</div>
						
		</div>
		
		<div class="content-spacer"></div>
		
		<div class="nosmooth" id="sm_company">
			
			<div id="company-details" class="ui-helper-reset ui-corner-all ui-widget-content">
				
				<div class="company-data">
					<div class="company-detail">
						<span>{#company#}:</span>
						{$company.name}
					</div>
					<div class="company-detail">
						<span>{#address#}:</span>
						{$company.address}
					</div>
					<div class="company-detail">
						<span>{#state#}:</span>
						{$company.state}
					</div>
					<div class="company-detail">
						<span>{#country#}:</span>
						{$company.country}
					</div>
					<div class="company-detail phone">
						<span>{#phone#}:</span>
						{$company.phone}
					</div>
					<div class="company-detail email">
						<span>{#email#}:</span>
						<a href="mailto:{$company.email}" title="{#email#}">{$company.email}</a>
					</div>
				</div>
				
				{if $logo}
				<img src="files/standard/companies_logos/{$company.logo}" alt="{$company.name}" title="{$company.name}" />
				{/if}
				
				<div class="clearfix"></div>
				
			</div>
			
			<div class="content-spacer"></div>
			
			<div class="user">
				<div class="headline">
					<h2>
						<img src="templates/planeacion_desarrollo/images/symbols/userlist.png" alt="{#members#}" title="{#members#}" />
						{#members#}
					</h2>
				</div>
			</div>
			
			{if $company}
			<table class="table-data">
				
				<thead>
					<tr>
						<th>{#user#}</th>
						<th>{#phone#}</th>
						<th>{#email#}</th>
						<th>{#address#}</th>
						<th>{#state#}</th>
					</tr>
				</thead>
				
				
				<tbody>
					{foreach key=key item=member from=$company.members}
					<tr id="{$member.ID}" {if $member.ID % 2 == 0}class="color-a"{else}class="color-b"{/if} >
						<td>
							<a href="manageuser.php?action=profile&id={$member.ID}">{$member.name}</a>
						</td>
						<td>{$member.phone}</td>
						<td>{$member.email}</td>
						<td>{$member.address}</td>
						<td>{$member.state}</td>
					</tr>
					{/foreach}
				</tbody>
				
			</table>
			
			
			
			{else}
			<div class="no-data">
				{#members_no_data#}
			</div>
			{/if}
			
			<div class="tablemenue"></div>
			
			<div class="content-spacer"></div>
			
		</div>
		
	</div>
		
</div>

{include file="sidebar-a.tpl"}

{include file="footer.tpl"}